import xml.dom.minidom
from xml.dom.ext import PrettyPrint
from xml.dom.minidom import Node
from xml.dom.ext.reader.Sax2 import FromXmlStream

from client import *
from client_sender import * 

if __name__ == "__main__":
	file = open("rhythmdb.xml", "r")
	dom = FromXmlStream(file)
	clt = Client("test", dom)

	sender = ClientSender(clt)
	PrettyPrint(sender.send())
